package com.medusa.aps.business.modules.modeling.mp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.medusa.aps.business.model.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 工艺工序设备实体类
 *
 * @author yuxh
 * @since 2023-08-14 17:37:48
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Schema(description = "工艺工序设备实体类")
public class ProcessEquipment extends BaseEntity<ProcessEquipment> {
    /**
     * 主键
     */
    @Schema(description = "主键")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 设备id
     */
    @Schema(description = "设备id")
    private Long equipmentId;
    /**
     * 设备编码
     */
    @Schema(description = "设备编码")
    private String equipmentCode;
    /**
     * 生产节拍
     */
    @Schema(description = "生产节拍")
    private Long productionBeat;
    /**
     * 工序id
     */
    @Schema(description = "工序id")
    private Integer processId;
    /**
     * 工艺路线id
     */
    @Schema(description = "工艺路线id")
    private Integer processRouteId;
    /**
     * 辅助资料id
     */
    @Schema(description = "辅助资料id")
    private Integer auxiliaryDataId;
    /**
     * 辅助资料编码
     */
    @Schema(description = "辅助资料编码")
    private String auxiliaryDataCoding;
    /**
     * 加工批量
     */
    @Schema(description = "加工批量")
    private Long processingBatch;
    /**
     * 工艺工序id
     */
    @Schema(description = "工艺工序id")
    private Integer processProcessId;
    /**
     * 物料id
     */
    @Schema(description = "物料id")
    private Long materialId;
    /**
     * 物料编码
     */
    @Schema(description = "物料编码")
    private String materialCode;


    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

